package com.spring.demo.rabbit;

/***
 * @title RoutingKeyConst
 * @description
 * @author baiji
 * @version 1.0.0
 * @create 2023/9/4 10:54
 **/
public interface RoutingKeyConst {

    /**
     * direct
     */
    String DIRECT_ROUTING_KEY_01 = "direct.routingKey.01";
    String DIRECT_ROUTING_KEY_02 = "direct.routingKey.02";

    /**
     * 完全匹配
     */
    String TOPIC_ROUTING_KEY_01 = "com.woo.hua";
    /**
     * “#”：匹配 0个或多个（含1个）
     */
    String TOPIC_ROUTING_KEY_02 = "com.woo.hua.#";
    /**
     * “*”:只匹配1个
     */
    String TOPIC_ROUTING_KEY_03 = "com.woo.hua.*";

    /**
     * 私信队列
     */
    String DEAD_LETTER_ROUTING_KEY = "rk.dead.letter.001";
    String BUSINESS_ROUTING_KEY = "rk.001";

    /**
     * 延迟队列路由键
     */
    String DELAY_ROUTING_KEY = "rk.delay.001";

}
